from rest_framework import serializers
from .models import PatientRecord

class PatientRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = PatientRecord
        fields = ['id', 'name', 'age', 'diagnosis', 'date']
        read_only_fields = ['id'] 